package com.castudio.Mapper;

import com.castudio.Entity.Repairtable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 小陈同学
 * @since 2022-12-14
 */
@Mapper
public interface RepairtableMapper extends BaseMapper<Repairtable> {

    List<Repairtable> getAllPage(Integer page, Integer size);
    Long getTotal();
    void insert(String fileUrl,String computername,String computertype,String reason,String realname,
                String dormnum,String stunum,String phone,String time,String openid);
    void updateRepair(String time, String openid,Integer id,String state);

    List<Repairtable> Page(Integer page, Integer size, String openid);

    Long Total(String openid);

    void updateR(Integer id, String repairid, String time);

    void updateS(Integer id, Integer state, String time, String remark);
}
